package IC.SymbolTable;

public abstract class SymbolTable {

	public void InitSymbol(SymbolTable parent){
		this.parent = parent;
		if (parent != null){
			this.depth = parent.getDepth()+1;
		} else this.depth = -1; // this is global
	}
	
	public int getDepth() {
		return depth;
	}
	
	protected SymbolTable parent;
	protected int depth;
}
